package com.springcloud.feign.service;


import com.springcloud.feign.service.hystric.TestServiceHystric;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author: yc
 */
@FeignClient(value = "eureka-client", fallback = TestServiceHystric.class)
public interface TestService {

    @RequestMapping(value = "/hello/xxx", method = RequestMethod.GET)
    String hello();

}
